﻿@model SiteConfigViewModel
<div class="layui-row layui-col-space15">
	<div class="layui-col-md12">
		<div class="layui-card">
			<div class="layui-card-header">商城参数设置</div>
			<div class="layui-card-body" pad15>
				<form asp-controller="SiteConfig" asp-action="ShopConfig" class="layui-form" wid100 lay-filter="">
					<div class="layui-form-item">
						<label class="layui-form-label">
							允许游客购买
						</label>
						<div class="layui-input-block">
							<input type="checkbox" asp-for="ShopConfigEntity.EnableGuestBuy" lay-skin="switch" lay-text="已开启|已关闭">
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">
							订单编号前缀
						</label>
						<div class="layui-input-block">
							<input type="text" asp-for="ShopConfigEntity.PrefixOrderFormNum" placeholder="只能输入数字与字母，例：JX" class="layui-input">
							<span asp-validation-for="ShopConfigEntity.PrefixOrderFormNum" style="color:red;"></span>
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">在线支付前缀</label>
						<div class="layui-input-block">
							<input type="text" asp-for="ShopConfigEntity.PrefixPaymentNum" placeholder="只能输入数字与字母，例：OP" class="layui-input">
							<span asp-validation-for="ShopConfigEntity.PrefixPaymentNum" style="color:red;"></span>
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">我所在的地区</label>
						<div class="layui-input-block">
							@await Component.InvokeAsync("Region", new RegionViewModel { Prefix = "ctl", Province = ViewBag.Province, City = ViewBag.City })
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">地区的邮政编码</label>
						<div class="layui-input-block">
							<input type="text" asp-for="ShopConfigEntity.PostCode" placeholder="例：100000" class="layui-input">
							<span asp-validation-for="ShopConfigEntity.PostCode" style="color:red;"></span>
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">
							订单商品种类
						</label>
						<div class="layui-input-block">
							<input type="text" asp-for="ShopConfigEntity.OrderProductNumber" placeholder="当设置为＂0＂时，代表不限制。" class="layui-input">
							<span class="layui-bg-green">说明：当设置为＂0＂时，代表不限制。</span>
							<span asp-validation-for="ShopConfigEntity.OrderProductNumber" style="color:red;"></span>
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">
							开启支付密码
						</label>
						<div class="layui-input-block">
							<input type="checkbox" asp-for="ShopConfigEntity.IsPayPassword" lay-skin="switch" lay-text="已开启|已关闭">
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">
							自动指派跟单员
						</label>
						<div class="layui-input-block">
							<input type="checkbox" asp-for="ShopConfigEntity.IsSetFunctionary" lay-skin="switch" lay-text="已开启|已关闭">
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">
							商品分期付款
						</label>
						<div class="layui-input-block">
							<input type="checkbox" asp-for="ShopConfigEntity.IsEnableHP" lay-skin="switch" lay-text="已开启|已关闭">
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">
							逾期滞纳金费率
						</label>
						<div class="layui-input-inline" style="width:100px;">
							<input type="text" asp-for="ShopConfigEntity.OverdueHP" placeholder="" class="layui-input">
						</div>
						<div class="layui-form-mid layui-word-aux">%<span asp-validation-for="ShopConfigEntity.OverdueHP" style="color:red;"></span></div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">
							最低逾期滞纳金
						</label>
						<div class="layui-input-inline" style="width:100px;">
							<input type="text" asp-for="ShopConfigEntity.MinOverdueHP" placeholder="" class="layui-input">
						</div>
						<div class="layui-form-mid layui-word-aux">元<span asp-validation-for="ShopConfigEntity.MinOverdueHP" style="color:red;"></span></div>
						
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">
							最高逾期滞纳金
						</label>
						<div class="layui-input-inline" style="width:100px;">
							<input type="text" asp-for="ShopConfigEntity.MaxOverdueHP" placeholder="" class="layui-input">
						</div>
						<div class="layui-form-mid layui-word-aux">元<span asp-validation-for="ShopConfigEntity.MaxOverdueHP" style="color:red;"></span></div>
						
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">
							购买商品后评论
						</label>
						<div class="layui-input-block">
							<input type="checkbox" asp-for="ShopConfigEntity.IsCommentByBuy" lay-skin="switch" lay-text="已开启|已关闭">
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">
							评论成功的积分
						</label>
						<div class="layui-input-block">
							<input type="text" asp-for="ShopConfigEntity.CommentExp" placeholder="" class="layui-input">
							<span asp-validation-for="ShopConfigEntity.CommentExp" style="color:red;"></span>
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">
							首单的折扣比例
						</label>
						<div class="layui-input-inline" style="width:100px;">
							<input type="text" asp-for="ShopConfigEntity.FirstOrderDiscount" placeholder="" class="layui-input">
						</div>
						<div class="layui-form-mid layui-word-aux">%<span asp-validation-for="ShopConfigEntity.FirstOrderDiscount" style="color:red;"></span></div>
						
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">继续购物链接</label>
						<div class="layui-input-block">
							<input type="text" asp-for="ShopConfigEntity.ContinueBuy" placeholder="" class="layui-input">
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">订购后返回地址</label>
						<div class="layui-input-block">
							<input type="text" asp-for="ShopConfigEntity.AgainBuyUrl" placeholder="" class="layui-input">
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">
							购物车选中赠品
						</label>
						<div class="layui-input-block">
							<input type="checkbox" asp-for="ShopConfigEntity.ShoppingCartSendPresent" lay-skin="switch" lay-text="已开启|已关闭">
							
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">
							启用三级分销
						</label>
						<div class="layui-input-block">
							<input type="checkbox" asp-for="ShopConfigEntity.EnableDistributor" lay-skin="switch" lay-text="已开启|已关闭">
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">
							是否启用经销商
						</label>
						<div class="layui-input-block">
							<input type="checkbox" asp-for="ShopConfigEntity.EnableDealer" lay-skin="switch" lay-text="已开启|已关闭">
						</div>
					</div>
					<div class="layui-form-item">
						<div class="layui-input-block">
							<button class="layui-btn" lay-submit lay-filter="">确认保存</button>
							<span style="color:red; font-size:18px;">@Html.ValidationSummary(true)</span>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
</div>
